package com.boang.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
  @author: 13813
  @date: 2024/8/26 14:58
*/
@RestController
@RefreshScope
public class NacosController {

    @Value("${name}")
    private String name;

    @Value("${spring.datasource.url}")
    private String url;

    @Value("${spring.thymeleaf.mode}")
    private String mode;

    @RequestMapping("/test")
    public String test() {
        return name + "," + url + "," + mode;
    }
}
